package com.diao.myhub.model.dto;

import lombok.Data;

/**
 * @author Huah
 */
@Data
public class HotTagDTO implements Comparable<HotTagDTO> {
    private String tagName;
    private Long priority;
    private Long questionCount;
    private Long replies;

    @Override
    public int compareTo(HotTagDTO o) {
        long sub = this.priority - o.getPriority();
        return sub > 0 ? 1 : sub == 0 ? 0 : -1;
    }

}
